package com.bruce.demo2.patterns.demo1.creational.demo01.singleton.demo06;

/**
 * @PROJECT_NAME design_patterns
 * @DESCRIPTION 测试类
 * @AUTHOR CNBruceLee
 * @DATE 2021/7/1 23:08
 */
public class Test {
    public static void main(String[] args) {
        Thread t1 = new Thread(new MyThread());
        Thread t2 = new Thread(new MyThread());

        t1.start();
        t2.start();

        //现在可以用线程模式调试，发现不会同时进入获取的方法
    }
}
